//
//  ViewController.m
//  DirectionRotate
//
//  Created by 红沙尘 on 17/5/3.
//  Copyright © 2017年 红沙尘. All rights reserved.
//

#import "ViewController.h"
#import "TestController.h"
#import "AppDelegate.h"
@interface ViewController ()

@end

@implementation ViewController

- (IBAction)clicked {
    
    AppDelegate *app = (AppDelegate *)[UIApplication sharedApplication].delegate;
    app.orientation = UIInterfaceOrientationMaskAll;
    
    [self presentViewController:[[TestController alloc] init] animated:YES completion:nil];
}


- (BOOL)shouldAutorotate
{
    return NO;
}

@end
